﻿@model Catalog
@{
    var children = Model.Childs;
}
<div class="page-item page-4 page-insite">
    <h2>服务内容</h2>
    <ul class="list-service">
        <li>
            <img src="/App_Content/images/icons/i-ad.png" />
            <h2>精准媒介投放</h2>
            <h3>有影响、有调性,适合汽车品牌,匹配精选媒介</h3>
        </li>
        <li>
            <img src="/App_Content/images/icons/i-contant.png" />
            <h2>专业内容生产</h2>
            <h3>有深度 有品质,专业资深写手,深谙汽车行业</h3>
        </li>
        <li>
            <img src="/App_Content/images/icons/i-service.png" />
            <h2>订制全案服务</h2>
            <h3>有策略 有执行,针对市场目标,实效解决问题</h3>
        </li>
        <li>
            <img src="/App_Content/images/icons/i-data.png" />
            <h2>深度数据分析</h2>
            <h3>有方法 有工具,充分数据挖掘,细致研究分析</h3>
        </li>
    </ul>
</div>
<a name="case" style="margin-bottom:50px;"></a>
<div class="page-item page-4 page-insite">
    <h2>服务案例</h2>
    <div class="page-tabs">
        @for (int i = 0; i < children.Count(); i++)
        {
            var item=children[i];
            if (i == 0)
            {
                <a href="#" class="on">
                    @item.Name
                </a>
            }
            else
            {
                <a href="#">
                    @item.Name
                </a>
            }
        }
    </div>
    <div class="page-case-wrap">
        @for (int i = 0; i < children.Count(); i++)
        {
            var item = children[i];
            if (i == 0)
            {
                <ul class="page-case">
                    @Html.Action("ReadForCatalog", "Articles", new { PageSize = 9, VPartial = "ReadForService", CatalogKey = item.Key, IncludeChild = true })
                </ul>
            }
            else
            {
                <ul class="page-case" style="display:none;">
                    @Html.Action("ReadForCatalog", "Articles", new { PageSize = 9, VPartial = "ReadForService", CatalogKey = item.Key, IncludeChild = true })
                </ul>
            }
        }
    </div>
</div>